using Ln.Fram.Mapster;
using Ln.Rbac.Domain.Shared.Options;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Domain;

namespace Ln.Rbac.Domain.Shared;

[DependsOn(typeof(AbpDddDomainSharedModule), typeof(LnFramMapsterModule))]
public class LnRbacDomainSharedModule : AbpModule
{
	public override void ConfigureServices(ServiceConfigurationContext context)
	{
		var configuration = context.Services.GetConfiguration();
		Configure<JwtOptions>(configuration.GetSection(nameof(JwtOptions)));
		Configure<RefreshJwtOptions>(configuration.GetSection(nameof(RefreshJwtOptions)));
		Configure<RbacOptions>(configuration.GetSection(nameof(RbacOptions)));
	}
}